import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        component: require('../views/index.vue').default,
        redirect: '/video',
        children: [{
            path: '/video',
            name: '视频列表',
            component: require('../views/childView/video.vue').default
        }]
    }, {
        path: '/playVideo/:id',
        name: '视频播放',
        component: require('../views/childView/playVideo.vue').default
    }, {
        path: '/map',
        name: '图标展示',
        component: require('../views/childView/map.vue').default
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
